/**
 * @Author：ming
 * @Date：2023/10/2 9:33 PM
 * @Filename：Hj7
 */

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author ming
 */
public class Hj7 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        while ((str=br.readLine())!=null){
            double d = Double.valueOf(str);
            int a = (int) (d+0.5);
            System.out.println(a);
        }

    }
}
